<?php
namespace app\api\controller;
use app\extra\CusSession;
use app\extra\Rest;

class News extends Rest
{
    protected $_noAuthorization = ['gets'];

    public function gets()
    {
        $data = array(
            'name' => 'red_panda',
            'address' => 'China',
        );
        $code = 200;
        $msg = 'ok';
        return ['data' => $data, 'code' => $code, 'message' => $msg];
    }
    # post
    public function create(){
        
    }
    # put
    public function update(){
        
    }
    # delete
    public function delete(){
        
    }
}